/* eslint-disable import/extensions */
/* eslint-disable import/no-unresolved */
import { lazy } from 'react';

import { AppRouteObject } from '@/types/router';

// 懒加载组件
const TgRegister = lazy(() => import('./TgRegister'));
const TgIndex = lazy(() => import('./TiangongIndex'));

// 天工AI路由配置
const tiangongAiRoutes: AppRouteObject[] = [
  {
    path: '/tiangong-ai',
    element: <TgIndex />,
    meta: {
      label: '天工AI',
      key: '/tiangong-ai',
      hideMenu: false,
    },
  },
  {
    path: '/register',
    element: <TgRegister />,
    meta: {
      label: '天工AI登录',
      key: '/register',
      hideMenu: true,
    },
  },
];

export default tiangongAiRoutes;
